package com.kyzh.core.adapters

import com.bumptech.glide.Glide
import com.chad.library.adapter.base.BaseQuickAdapter
import com.chad.library.adapter.base.viewholder.BaseViewHolder
import com.gushenge.core.beans.GameBottomDetail
import com.kyzh.core.R

class GameDetailLikeAdapter(layout:Int,bean:ArrayList<GameBottomDetail.Cnlike>):BaseQuickAdapter<GameBottomDetail.Cnlike,BaseViewHolder>(layout,
    bean) {

    override fun convert(helper: BaseViewHolder, item: GameBottomDetail.Cnlike) {
        item.let {
            helper.setText(R.id.name,it.name)
            Glide.with(context).load(it.icon).into(helper.getView(R.id.icon))
        }
    }
}